package com.rc.pojo.po;

import com.mybatisflex.annotation.Column;
import com.mybatisflex.annotation.Id;
import com.mybatisflex.annotation.KeyType;
import com.mybatisflex.annotation.Table;
import com.mybatisflex.core.handler.JacksonTypeHandler;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;
import java.util.List;

@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@Table(value = "identify", schema = "rc")
public class Identify {
    @Id(keyType = KeyType.Auto)
    private Long id;

    @Column(typeHandler = JacksonTypeHandler.class)
    private List<String> illNames;

    private String originalImg;

    private String identifyImg;

    private Integer ripeNum;

    private Integer totalNum;

    @Column(onInsertValue = "now()")
    private LocalDateTime createTime;

    @Column(tenantId = true)
    private Long conId;

    private Long plantItemId;
}
